package com.kude.entity;

import java.util.HashSet;
import java.util.Set;


public abstract class AbstractProductCategory implements java.io.Serializable {

	public static final String TABLE_NAME = "product_type";
	public static final String CATEGORY_NAME = "category_name";
	public static final String PREFIX = "prefix";
	public static final String PARENTID = "parent_id";
	public static final String PRODUCTS = "products";

	private Integer categoryId;
	private String categoryName;
	private String prefix;
	private Integer parentId;
	private Set<Product> products = new HashSet(0);

	public AbstractProductCategory() {
	}

	/** full constructor */
	public AbstractProductCategory(Integer categoryId, String categoryName,
			String prefix, Integer parentId, Set<Product> products) {
		this.categoryId = categoryId;
		this.categoryName = categoryName;
		this.prefix = prefix;
		this.parentId = parentId;
		this.products = products;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public String getPrefix() {
		return prefix;
	}

	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Set<Product> getProducts() {
		return products;
	}

	public void setProducts(Set<Product> products) {
		this.products = products;
	}


}
